package com.yidiandao.business.data.imagemodule;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;

import java.util.List;

/** 秒杀 */
public class SecondKill {

    @SerializedName("url")
    private String url;

    @SerializedName("time_info")
    private TimeInfo timeInfo;

    @SerializedName("goods_list")
    private List<Goods> goodsList;

    @SerializedName("now_time")
    private long serverNowTime;

    private long leaveTime;

    private int state;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public long getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(long leaveTime) {
        this.leaveTime = leaveTime;
    }

    public long getServerNowTime() {
        return serverNowTime;
    }

    public void setServerNowTime(long serverNowTime) {
        this.serverNowTime = serverNowTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public TimeInfo getTimeInfo() {
        return timeInfo;
    }

    public void setTimeInfo(TimeInfo timeInfo) {
        this.timeInfo = timeInfo;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public static class TimeInfo {

        @SerializedName("start_time")
        private long startTime;

        @SerializedName("end_time")
        private long endTime;

        @SerializedName("title")
        private String title;

        public long getStartTime() {
            return startTime;
        }

        public void setStartTime(long startTime) {
            this.startTime = startTime;
        }

        public long getEndTime() {
            return endTime;
        }

        public void setEndTime(long endTime) {
            this.endTime = endTime;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
